<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head>
</h:head>
<h:body> 
	<h:form>
		<h:inputHidden value="#{professorMBean.professor.id}" />
		<p:panelGrid columns="2">  
   	 		<f:facet name="header">  
        		Usuário  
    		</f:facet>  
  	
  			<h:outputLabel for="id" value="Id: " />  
    		<h:outputText id="id" value="#{professorMBean.professor.id}" />   
  
  			<h:outputLabel for="nome" value="Nome: *" />  
    		<p:inputText id="nome" value="#{professorMBean.professor.nome}" required="true" label="login"/>  
  
  			<h:outputLabel for="cargaHoraria" value="Carga Horária: *" />  
    		<p:inputText id="cargaHoraria" value="#{professorMBean.professor.cargaHoraria}" required="true" label="nome"/>
    		
    		<h:outputLabel for="titulacao" value="Titulação: *" />
    		<p:selectOneMenu id="titulacao" value="#{professorMBean.professor.titulacao}" required="true">  
				<f:selectItems value="#{professorMBean.comboTitulacao}" var="titulacao" itemLabel="#{titulacao.description}" itemValue="#{titulacao}"/>
        	</p:selectOneMenu>
	
    		
		    <f:facet name="footer">  
		        <p:commandButton value="Salvar" icon="ui-icon-check" action="#{professorMBean.salvar}"/>  
		    </f:facet>
		    
		</p:panelGrid>
	</h:form>

</h:body> 
</html>
